package producatorconsumator;
/**
Multithreading, consider the following scenario:

a) One thread will produce randomly from 1 to 5 requests with an unique id each 500 ms and put them into a list.
b) Two threads will consume the requests, by printing request id.

Each request should be processed only once.

Rezolvare:
*/
public class Testarea {

	public static void main(String[] args) {

		BlockMyStack bms = new BlockMyStack();
		Producator prod = new Producator(bms);
		prod.start();

		Consumator cons1 = new Consumator(bms, "Consumer 1");
		cons1.start();
		Consumator cons2 = new Consumator(bms, "Consumer 2");
		cons2.start();

	}

}
